(decode-char): Translate a character by
authorKenichi Handa <handa@m17n.org>
Wed, 4 Sep 2002 08:15:40 +0000 (08:15 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 4 Sep 2002 08:15:40 +0000 (08:15 +0000)
utf-8-translation-table-for-decode only when
utf-8-fragment-on-decoding is non-nil.

lisp/international/mule.el

index e937d11030ef5fabe57c814e9516ccc041ec5378..8b1dbf89762b6fe78405084abf6ef114bed58309 100644 (file)
@@ -308,7 +308,8 @@ See also the documentation of `make-char'."
 Return nil if such a character is not supported.
 Currently the only supported coded character set is `ucs' (ISO/IEC
 10646: Universal Multi-Octet Coded Character Set), and the result is
-translated through the char table `utf-8-translation-table-for-decode'.
+translated through the char table `utf-8-translation-table-for-decode'
+if the variable `utf-8-fragment-on-decoding' is non-nil.
 
 Optional argument RESTRICTION specifies a way to map the pair of CCS
 and CODE-POINT to a character.   Currently not supported and just ignored."
@@ -331,7 +332,9 @@ and CODE-POINT to a character.   Currently not supported and just ignored."
               (setq code-point (- code-point #xe000))
               (make-char 'mule-unicode-e000-ffff
                          (+ (/ code-point 96) 32) (+ (% code-point 96) 32))))))
-      (if (and c (aref utf-8-translation-table-for-decode c))
+      (if (and c
+              utf-8-fragment-on-decoding
+              (aref utf-8-translation-table-for-decode c))
          (aref utf-8-translation-table-for-decode c)
        c)))))
 
@@ -843,6 +846,11 @@ following properties are recognized:
   In the former case, the integer value is a valid byte code.  In the
   latter case, the integers specify the range of valid byte codes.
 
+  o composition (meaningful only when TYPE is 0 or 2)
+
+  If the value is non-nil, the coding system preserves information of
+  composition.
+
 These properties are set in PLIST, a property list.  This function
 also sets properties `coding-category' and `alias-coding-systems'
 automatically.